package dao;

import java.sql.SQLException;
import java.util.List;

import model.Book;
import model.User;

public interface UserDao {
	// 管理员得到所有用户
	List<User> getAllUser() throws SQLException;

	// 登陆
	User getUserByIdAndPwd(String id, String password,String userGrade) throws SQLException;

	// 根据用户id得到用户对象
	User getUserById(String id) throws SQLException;

	// 注册用户
	boolean register(User user) throws SQLException;
	
	//用户更新信息
	boolean updateUser(User user) throws SQLException;
	
	//删除用户
	boolean deleteUser(User user) throws SQLException;
}
